const express = require("express");
var router = express.Router();
var productCtrl = require("../controllers/product.server.controller");

router.route("/product")
		.post(productCtrl.addProduct);


router.route("/products")
		.get(productCtrl.getProducts)


router.route("/product/:id")
		.delete(productCtrl.deleteProduct)
		.put(productCtrl.updateProduct)	;

module.exports = router;